<%@ page language="java" pageEncoding="utf-8"%>

<!DOCTYPE html>
<html>

<head>
	<%@include file="../include_new.jsp" %>
	<title>${webTitle}</title>
	<link  href="../static/style/login/css/style.css?${v}" rel="stylesheet" type="text/css">
	<script type="text/javascript">
		$(function(){
			$("#form_1 input[name='acc']").focus();
			
			document.onkeydown = function(e) {//回车键事件
				if(e.keyCode == 13) {
					login();
				}
			}
		});
		
		function login() {
			if(!$("#acc").val()) {
				$("#acc").focus();
				return;
			}
			if(!$("#pwd").val()) {
				$("#pwd").focus();
				return;
			}
			
			tool.query("../sys/doLogin", $("#form_1").serialize(), function(res) {
				location = "../main/main";
			});
		}
	</script>
</head>

<body>
	<canvas id="canvas"></canvas>
    <div class="loginbox" id="box_login">
    	<div class="login"></div>
        <div class="loginbg"></div>
        <div class="l-title">
        	<span>${webTitle}</span>
        </div>
        <div class="l-txtbox">
        	<form id="form_1">
	        	<div class="l-ipt userico"><input id="acc" name="acc" type="text"  placeholder="用户名"/></div>
	            <div class="l-ipt pwdico"><input id="pwd" name="pwd" type="password"  placeholder="密码"/></div>  
	            <a href="#" class="l-btn" onclick="login()">登录</a>
            </form>
        </div>
    </div>
    <!-- <div class="login_ft">&copy;湖南科诚</div>   -->
</body>

<script type="text/javascript" src="../static/style/login/js/login.js"></script>

</html>